package cn.tedu.hotel.serve.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserCommentDTO implements Serializable {

    private String username;

    private String nickname;

    @NotNull(message = "必须填写酒店名字")
    private String hotelName;

    private Long userId;

    @Range(min = 1,message = "请填写有效值")
    private Long hotelId;

    @NotNull(message = "必须填写内容")
    @NotEmpty(message = "评论内容不能为空")
    private String comment;
}
